package com.icarus.quartz.service;

import java.util.List;

import com.icarus.quartz.entity.QuartzJob;

public interface QuartzJobService {
	
	/**
	 * 新增任务
	 * 
	 * @param quartzJob
	 * @return
	 * @throws Exception
	 */
	public int add(QuartzJob quartzJob) throws Exception;

	/**
	 * 获取任务列表
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<QuartzJob> getList() throws Exception;

	/**
	 * 初始化定时任务
	 * 
	 * @throws Exception
	 */
	public void init() throws Exception;

}
